package com.eportal.ORM;

/**
 * TermReadyView entity. @author MyEclipse Persistence Tools
 */

public class TermReadyView implements java.io.Serializable {

	// Fields

	private Integer id;
	private String termid;
	private String address;
	private String linkman;
	private String linkmanphone;
	private String bank;
	private String appdt;
	private String updt;
	private String incdno;
	private String username;
	private String flag;
	private String table;

	// Constructors

	/** default constructor */
	public TermReadyView() {
	}

	public String getTable() {
		return table;
	}

	public void setTable(String table) {
		this.table = table;
	}

	/** minimal constructor */
	public TermReadyView(Integer id, String termid, String address,
			String linkman, String linkmanphone, String bank, String appdt,
			String updt, String incdno,String username) {
		this.id = id;
		this.termid = termid;
		this.address = address;
		this.linkman = linkman;
		this.linkmanphone = linkmanphone;
		this.bank = bank;
		this.appdt = appdt;
		this.updt = updt;
		this.incdno = incdno;
		this.username = username;
	}

	/** full constructor */
	public TermReadyView(Integer id, String termid, String address,
			String linkman, String linkmanphone, String bank, String appdt,
			String updt, String incdno, String username,String flag) {
		this.id = id;
		this.termid = termid;
		this.address = address;
		this.linkman = linkman;
		this.linkmanphone = linkmanphone;
		this.bank = bank;
		this.appdt = appdt;
		this.updt = updt;
		this.incdno = incdno;
		this.username = username;
		this.flag = flag;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTermid() {
		return this.termid;
	}

	public void setTermid(String termid) {
		this.termid = termid;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getLinkman() {
		return this.linkman;
	}

	public void setLinkman(String linkman) {
		this.linkman = linkman;
	}

	public String getLinkmanphone() {
		return this.linkmanphone;
	}

	public void setLinkmanphone(String linkmanphone) {
		this.linkmanphone = linkmanphone;
	}

	public String getBank() {
		return this.bank;
	}

	public void setBank(String bank) {
		this.bank = bank;
	}

	public String getAppdt() {
		return this.appdt;
	}

	public void setAppdt(String appdt) {
		this.appdt = appdt;
	}

	public String getUpdt() {
		return this.updt;
	}

	public void setUpdt(String updt) {
		this.updt = updt;
	}

	public String getIncdno() {
		return this.incdno;
	}

	public void setIncdno(String incdno) {
		this.incdno = incdno;
	}

	public String getFlag() {
		return this.flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TermReadyView))
			return false;
		TermReadyView castOther = (TermReadyView) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getTermid() == castOther.getTermid()) || (this
						.getTermid() != null
						&& castOther.getTermid() != null && this.getTermid()
						.equals(castOther.getTermid())))
				&& ((this.getAddress() == castOther.getAddress()) || (this
						.getAddress() != null
						&& castOther.getAddress() != null && this.getAddress()
						.equals(castOther.getAddress())))
				&& ((this.getLinkman() == castOther.getLinkman()) || (this
						.getLinkman() != null
						&& castOther.getLinkman() != null && this.getLinkman()
						.equals(castOther.getLinkman())))
				&& ((this.getLinkmanphone() == castOther.getLinkmanphone()) || (this
						.getLinkmanphone() != null
						&& castOther.getLinkmanphone() != null && this
						.getLinkmanphone().equals(castOther.getLinkmanphone())))
				&& ((this.getBank() == castOther.getBank()) || (this.getBank() != null
						&& castOther.getBank() != null && this.getBank()
						.equals(castOther.getBank())))
				&& ((this.getAppdt() == castOther.getAppdt()) || (this
						.getAppdt() != null
						&& castOther.getAppdt() != null && this.getAppdt()
						.equals(castOther.getAppdt())))
				&& ((this.getUpdt() == castOther.getUpdt()) || (this.getUpdt() != null
						&& castOther.getUpdt() != null && this.getUpdt()
						.equals(castOther.getUpdt())))
				&& ((this.getIncdno() == castOther.getIncdno()) || (this
						.getIncdno() != null
						&& castOther.getIncdno() != null && this.getIncdno()
						.equals(castOther.getIncdno())))
				&& ((this.getFlag() == castOther.getFlag()) || (this.getFlag() != null
						&& castOther.getFlag() != null && this.getFlag()
						.equals(castOther.getFlag())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37 * result
				+ (getTermid() == null ? 0 : this.getTermid().hashCode());
		result = 37 * result
				+ (getAddress() == null ? 0 : this.getAddress().hashCode());
		result = 37 * result
				+ (getLinkman() == null ? 0 : this.getLinkman().hashCode());
		result = 37
				* result
				+ (getLinkmanphone() == null ? 0 : this.getLinkmanphone()
						.hashCode());
		result = 37 * result
				+ (getBank() == null ? 0 : this.getBank().hashCode());
		result = 37 * result
				+ (getAppdt() == null ? 0 : this.getAppdt().hashCode());
		result = 37 * result
				+ (getUpdt() == null ? 0 : this.getUpdt().hashCode());
		result = 37 * result
				+ (getIncdno() == null ? 0 : this.getIncdno().hashCode());
		result = 37 * result
				+ (getFlag() == null ? 0 : this.getFlag().hashCode());
		return result;
	}

}